/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package dao;

import entity.Product;
import java.util.List;

/**
 *
 * @author OkSa Bawu
 */
public interface ProductDAO {
    public void insert(Product p)throws Exception;
    public void delete(Product p)throws Exception;
    public void update(Product p)throws Exception;
    public Product get(Long id)throws Exception;
    public List<Product> gets()throws Exception;
    public List<Product> getByCode(String code)throws Exception;
}
